package com.atguigu.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author DongYu Zhou
 * @date 2022/5/30 17:53
 */
//@Component
//@Data@AllArgsConstructor@NoArgsConstructor //lombok的注解
public class DataSourceProperties {
    /**
     * 下面的方法传参还是很low的
     */

   // @Value("${spring.jdbc.datasource.username}")
    private String username;
   // @Value("${spring.jdbc.datasource.password}")
    private String password;
  //  @Value("${spring.jdbc.datasource.url}")
    private String url;
  //  @Value("${spring.jdbc.datasource.driverClassName}")
    private String driverClassName;


}
